home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr29
/
cadq_010.zip
/
CADQUTIL.DOC
< prev
next >
Wrap
Text File
|
1995-03-16
|
10KB
|
222 lines
CADQUTIL Version 0.1
Client Access/400 Data Queues OS/2 REXX Utility Libary
CADQUTIL is an OS/2 REXX external function library that uses the AS/400
Client Access Data Queues APIs. Support for most of the high-level
data queue APIs is provided, with the exception of asynchronous receiving
of a data queue message.
Because the utility provides a REXX interface to the Client Access APIs,
it should be able to be used from within graphical REXX packages such as
Watcom's VX-REXX to provide an easier client/server interface for
OS/2-AS/400 graphical applications.
The library was created using Client Access/400 V3R1M0 data queue APIs
and may or may not run with prior or future versions of OS/400 or
Client Access/400.
The contents of this package are:
CADQUTIL.DOC - Data queues utility function documentation (this file).
CADQUTIL.DLL - Data queues REXX function library.
TESTDQ.CMD - Sample REXX program for a non-keyed data queue.
TESTDQK.CMD - Sample REXX program for a keyed data queue.
================================= DISCLAIMER =================================
The CADQUTIL REXX library and all accompanying documentation and examples
are provided on an "AS IS" basis. This means that Innovative Systems Design
does not warrant, guarantee, or make any other representations regarding
the use, or results of use, of the library functions or documentation in
terms of accuracy, reliability, correctness, or otherwise. Innovative Systems
Design will not be held responsible for any direct, indirect, incidental,
or consequential damages including damages for loss of business profits,
business interruption, loss of business information, or otherwise arising
from the use or inability to use this product, even if Inovative Systems
Design has been advised of the possibility of such damages.
================================= REGISTRATION ===============================
The CADQUTIL library is distributed as shareware and may be freely
distributed as long as all the above files are included and are unmodified.
If after thirty days you find the product useful and can no longer ignore
your conscience, you should register it.
The registration fee is $25 US for an individual CPU or $100 US for a
full site license, and may be submitted through cash, check (drawn on
a U.S. bank) money order or international money order.
Please include your name, company name, address, e-mail address and
the version number from the top of this document to:
Innovative Systems Design
23011 Moulton Parkway, Suite E-10
Laguna Hills, CA 92653
Comments, questions, suggestions and yes, bug reports can be submitted
via the internet to gregt@isd.realm.net (CompuServe users can use
INTERNET:gregt@isd.realm.net).
============================ INSTALLATION AND USAGE ===========================
To install the function library, unzip the contents of this package
into a directory in your LIBPATH.
To use the functions, you must be using any flavor of OS/2 2.1 or later with
REXX support installed. OS/2 Client Access/400 must be started (with
data queues support installed) and the OS/2 PC Support directory must be in
your LIBPATH.
The first thing you'll need to do in the REXX procedure is load the
function library. This is done by including the following lines before
any calls to the utility functions:
call rxfuncadd 'CADQLoadFuncs', 'CADQUTIL', 'CADQLoadFuncs'
call CADQLoadFuncs
The utility functions supported are defined below. They can be coded in a
REXX command file as functions (returning a value) or as called procedures.
Unless otherwise noted, the REXX variable RESULT will contain the return
code from the corresponding Client Access API. For more information,
refer to the Client Access/400 API reference manual.
Note: All parameters are positional and must appear in the order shown.
Optional parameters are shown in brackets [] and must include a comma
placeholder if omitted from the middle of the list. If omitted from the
end of the list, trailing commas should not be present.
===============================================================================
CADQCreate: Create Data Queue
Usage: call CADQCreate q-name,[sys-name],max-q-length,seq,force,aut,sender,
[q-text],[key-length]
Parameters:
q-name: Data queue name in AS/400 notation (library/name).
sys-name: System name. If not specified, the default system is used.
max-q-length: Maximum data queue message length.
seq: Sequence. 0=LIFO, 1=FIFO. Ignored for keyed data queues.
force: Force data to storage. 0=No, 1=Yes
aut: Data queue authority. 0=*ALL, 1=*EXCLUDE, 2=*CHANGE,
3=*USE, 4=*LIBCRTAUT
sender: Include sender ID with message. 0=No, 1=Yes
text: Data queue text description (optional).
key-length: If specified, indicates the key length for a keyed data
queue. If omitted, a non-keyed data queue will be created.
===============================================================================
CADQDelete: Delete Data Queue
Usage: call CADQDelete q-name,[sys-name]
Parameters:
q-name: Data queue name in AS/400 notation (library/name).
sys-name: System name. If not specified, the default system is used.
===============================================================================
CADQClear: Clear Data Queue
Usage: call CADQClear q-name,[sys-name]
Parameters:
q-name: Data queue name in AS/400 notation (library/name).
sys-name: System name. If not specified, the default system is used.
===============================================================================
CADQPut: Put Data to a Queue without waiting for a reply.
Usage: call CADQPut q-name,[sys-name],data,[key-value]
Parameters:
q-name: Data queue name in AS/400 notation (library/name).
sys-name: System name. If not specified, the default system is used.
data: Message to be queued.
key-value: Key value for the message to be enqueued.
Required for a keyed queue, not allowed for a non-keyed queue.
===============================================================================
CADQSend: Send Data to a Queue and wait for a reply.
Usage: call CADQSend q-name,[sys-name],data,[key-value]
Parameters:
q-name: Data queue name in AS/400 notation (library/name).
sys-name: System name. If not specified, the default system is used.
data: Message to be queued.
key-value: Key value for the message to be enqueued.
Required for a keyed queue, not allowed for a non-keyed queue.
===============================================================================
CADQReceive: Receive Data from a Queue and wait for a reply.
Usage: call CADQReceive q-name,[sys-name],wait,data-var,data-len,[sender-var],
[key-value,srch-ord,[key-var,key_len]]
Parameters:
q-name: Data queue name in AS/400 notation (library/name).
sys-name: System name. If not specified, the default system is used.
wait: Receive wait time in seconds.
data-var: Name of a REXX variable to receive the queued message.
dat-len: Maximum length of the message to receive.
sender-var: Name of a REXX variable to recieve the sender ID.
If omitted, the sender ID is not returned.
key-value: Key value to search for (keyed queue only).
srch-ord: Key search order (EQ NE GT GE LT LE) (keyed queue only).
key-var: Name of a REXX variable for the key value received.
If omitted, the actual key value will not be returned.
key-len: Length of the received key value.
===============================================================================
CADQSetMode: Set Data Queues Mode.
Usage: call CADQSetMode [sys-name],[xlate],[peek]
Parameters:
sys-name: System name. If not specified, the default system is used.
xlate: Translation mode. 0=No, 1=Yes, omitted=no change
peek: Peek mode. 0=No, 1=Yes, omitted=no change
===============================================================================
CADQGetMsg: Get Message.
Usage: call CADQGetMsg [sys-name]
Parameters:
sys-name: System name. If not specified, the default system is used.
The REXX variable RESULT will contain the retrieved message. If no more
messages are available, the length of RESULT will be 0.
===============================================================================
CADQQuery: Query Data Queue
Usage: call CADQQuery q-name,[sys-name]
Parameters:
q-name: Data queue name in AS/400 notation (library/name).
sys-name: System name. If not specified, the default system is used.
The following REXX variables will be set:
DQ_MAXLEN: Maximum length of messages for the specified queue.
DQ_SEQ: Sequence indicator for a non-keyed queue.
DQ_FORCE: Force data indicator.
DQ_SENDER Sender ID indicator.
DQ_TEXT: Text description for the queue.
DQ_KEYLEN: Key length for a keyed queue.
===============================================================================
CADQStop: Stop Data Queues
Usage: call CADQStop [sys-name]
Parameters:
sys-name: System name. If not specified, the default system is used.
===============================================================================
=============================== REVISION HISTORY ==============================
Version 0.1 - 03/16/95
Initial public beta release.